/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a12;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 背景容器 */
#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 主容器 */
.main-container {
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

/* 头部样式 */
.site-header {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo h1 {
    color: #c084fc;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #8b5cf6, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.user-actions {
    display: flex;
    align-items: center;
}

/* 发光按钮 */
.glow-button {
    background: linear-gradient(90deg, #8b5cf6, #c084fc, #f472b6);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.glow-button:hover::before {
    left: 100%;
}

/* 主要内容 */
.site-main {
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin: 2rem 0;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #8b5cf6, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cta-button.primary {
    background: linear-gradient(90deg, #8b5cf6, #c084fc);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.cta-button.secondary {
    background: transparent;
    color: #c084fc;
    border: 2px solid #c084fc;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* 内容展示 */
.featured-content, .topics-header, .blog-header, .discussions-header, .profile-header {
    margin: 4rem 0;
}

.featured-content h3, .topics-header h2, .blog-header h2, .discussions-header h2, .profile-header h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #e2e8f0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background: rgba(30, 30, 50, 0.6);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
    border-color: rgba(192, 132, 252, 0.4);
}

.content-card h4 {
    color: #c084fc;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-card p {
    color: #cbd5e1;
}

/* 话题统计 */
.topic-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    color: #a5b4fc;
    font-size: 0.9rem;
}

/* 博客文章样式 */
.post-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: #a5b4fc;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #c084fc;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-posts {
    display: grid;
    gap: 2rem;
}

/* 讨论串样式 */
.discussion-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: #a5b4fc;
    font-size: 0.9rem;
}

.discussions-list {
    display: grid;
    gap: 1.5rem;
}

/* 个人资料样式 */
.profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b5cf6, #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-details h3 {
    color: #c084fc;
    margin-bottom: 0.5rem;
}

.user-details p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.user-stats {
    display: flex;
    gap: 1.5rem;
    color: #a5b4fc;
}

.profile-actions {
    display: flex;
    align-items: center;
}

.profile-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.tab-button {
    background: rgba(30, 30, 50, 0.6);
    color: #cbd5e1;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active, .tab-button:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #c084fc;
    border-color: #8b5cf6;
}

.user-posts {
    display: grid;
    gap: 1.5rem;
}

/* 全屏编辑器 */
.fullscreen-editor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

.fullscreen-editor.active {
    display: block;
}

.editor-container {
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.editor-header h2 {
    color: #c084fc;
}

.icon-button {
    background: transparent;
    border: 2px solid #f472b6;
    color: #f472b6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.icon-button:hover {
    background: rgba(244, 114, 182, 0.2);
    transform: rotate(90deg);
}

.editor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor-title,
.editor-body {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    color: white;
    font-family: inherit;
    resize: none;
}

.editor-title {
    font-size: 1.5rem;
    height: 60px;
}

.editor-body {
    flex: 1;
}

.editor-footer {
    margin-top: 2rem;
    text-align: right;
}

/* 星云粒子效果 */
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid white;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .profile-card {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .profile-info {
        flex-direction: column;
    }
    
    .profile-actions {
        align-self: stretch;
        justify-content: center;
    }
}